package com.fc.v2.model.auto;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import java.util.Date;

public class ApplyTask implements Serializable {
    private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "id")
	private String id;
	
	@ApiModelProperty(value = "项目id")
	private String projectId;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "研究开始时间")
	private Date dateStart;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "最终完成时间")
	private Date dateEnd;
	
	@ApiModelProperty(value = "阶段成果名称")
	private String resName;
	
	@ApiModelProperty(value = "最终成果形式")
	private String resType;
	
	@ApiModelProperty(value = "承担人id")
	private String partId;
	
	@ApiModelProperty(value = "承担人")
	private String partName;
	
	@JsonProperty("id")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id =  id;
	}
	@JsonProperty("projectId")
	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId =  projectId;
	}
	@JsonProperty("dateStart")
	public Date getDateStart() {
		return dateStart;
	}

	public void setDateStart(Date dateStart) {
		this.dateStart =  dateStart;
	}
	@JsonProperty("dateEnd")
	public Date getDateEnd() {
		return dateEnd;
	}

	public void setDateEnd(Date dateEnd) {
		this.dateEnd =  dateEnd;
	}
	@JsonProperty("resName")
	public String getResName() {
		return resName;
	}

	public void setResName(String resName) {
		this.resName =  resName;
	}
	@JsonProperty("resType")
	public String getResType() {
		return resType;
	}

	public void setResType(String resType) {
		this.resType =  resType;
	}
	@JsonProperty("partId")
	public String getPartId() {
		return partId;
	}

	public void setPartId(String partId) {
		this.partId =  partId;
	}
	@JsonProperty("partName")
	public String getPartName() {
		return partName;
	}

	public void setPartName(String partName) {
		this.partName =  partName;
	}

																
	public ApplyTask(String id,String projectId,Date dateStart,Date dateEnd,String resName,String resType,String partId,String partName) {
				
		this.id = id;
				
		this.projectId = projectId;
				
		this.dateStart = dateStart;
				
		this.dateEnd = dateEnd;
				
		this.resName = resName;
				
		this.resType = resType;
				
		this.partId = partId;
				
		this.partName = partName;
				
	}

	public ApplyTask() {
	    super();
	}

	public String dateToStringConvert(Date date) {
		if(date!=null) {
			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}
	

}